<?php
	session_start();
	include_once("conn.php");
	
	//$board = $_GET["board"];
	$board = "computer";

	$sql = "select * from bbs_session where s_name = '".$board."'";
	$result = mysql_query($sql);
	$q_result = mysql_fetch_array($result);
	$banzhu = $q_result["s_admin_id"];				   //取得版主id号
	$board_num = $q_result["s_topic_num"];				//取得版面帖子总数
	
	$sql = "select * from bbs_user where u_id = '".$banzhu."'";
	$result = mysql_query($sql);
	$q_result = mysql_fetch_array($result);
	$banzhu_name = $q_result["u_name"];				//取得版主名字




?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset=utf-8 />
<link rel = "stylesheet" type ="text/css" href = "sidebar.css" />
<link rel = "stylesheet" href = "computer.css" style = "text/css" />
<link rel = "stylesheet" href = "board.css" style = "text/css" />
<link rel = "stylesheet" href = "jiaobu.css" style = "text/css" />

</head>
<body>
<div class = "header">
	<h3><a href = "#"><?php echo $board; ?></a> -- 讨论区 版主:<a href = "#">kingphar</a></h3>
	<p>本讨论区共有帖子<?php echo "100"; ?>篇  &nbsp&nbsp&nbsp&nbsp<a href="public.php">发表主题</a></p>
	<hr />
</div>

<div class = "body">
	<?php include_once("sidebar.php"); ?>
	
	<div class = "banmian">
		<table class = "tb_board">
			<tr>
				<th>作者</th>
				<th>发表时间</th>
				<th class = "bt">标题</th>
				<th>回帖/人气</th>
				<th>最新回复</th>
			</tr>

			<tr>
				<td><a><?php echo $_SESSION["current_user"];  ?></a></td>
				<td><a><?php echo $news_time;  ?></a></td>
				<td><a><?php echo $news_title;  ?></a></td>
				<td><a><?php    ?></a></td>
				<td><a><?php echo $last_huifu;  ?></a></td>
			</tr>

			

		</table>
	</div>
</div>

<div class = "footer">
	<?php include_once("jiaobu.php"); ?>
</div>	

</body>
</html>
